package api;

import conf.App;
import utils.HttpClientUtil;
import utils.ResponseData;

public class CommonApi {

    private static final String verifyCodeUrl = App.BASE_URL + "/common/public/verifycode/%s";

    // 获取图片验证码
    public ResponseData getVerifyCode(String random) throws Exception {
        String url = String.format(verifyCodeUrl, random);
        return HttpClientUtil.get(url);
    }

}
